import { createApp } from 'vue';
import { MotionPlugin } from '@vueuse/motion';

import App from './App.vue';

import { pinia, VChart } from './plugins';
import { router } from './routers';
import { request, apiWeather } from './networks';

const isElectron =
  navigator.userAgent.toLowerCase().indexOf(' electron/') != -1;

const app = createApp(App);

app.provide('isElcetron', isElectron);

app.use(pinia);
app.use(router);

app.use(request);
app.use(apiWeather);

app.use(MotionPlugin);
app.component('VChart', VChart);

app.mount('#app');
